package com.probiz.estore.common.model.product;

import com.probiz.estore.common.model.product.base.StockNotifyTbl;

/**
 * Model class for StockNotify. Add not database mapped fileds in this class.
 */
public class StockNotify extends StockNotifyTbl {

  	/**
	 * Default Empty Constructor for class StockNotify
	 */
	public StockNotify () {
		super();
	}
	
	/**
	 * 定义实体的业务名取值； stockNotifyName
	 * 必须手工完成这个部分，否则编译不通过。
	 */
	public String getStockNotifyName () {
		if (stockNotifyId == null)
	        return "";
	    else
			//返回一个指定有业务意义的属性值;
			//如：product的VO就用product.productName
	        return "";
	}
	
	/**
	 * Default Key Fields Constructor for class StockNotify
	 */
	public StockNotify (
		 Integer in_stockNotifyId
		) {
		super (
				in_stockNotifyId
		);
	}
	
	/**
	 * 获得登记人名称
	 * 
	 * @return
	 */
	public String getStockNotifyUserName() {
		if (null != customer) {
			return customer.getFullName();
		} else {
			return customerName;
		}
	}

}
